import request from '@/utils/request'

// 查询EPT状态规则列表
export function listMachineStatus(query) {
  return request({
    url: '/SYSConfig/machineStatus/list',
    method: 'get',
    params: query
  })
}

// 查询EPT状态规则详细
export function getMachineStatus(id) {
  return request({
    url: '/SYSConfig/machineStatus/' + id,
    method: 'get'
  })
}

// 新增EPT状态规则
export function addMachineStatus(data) {
  return request({
    url: '/SYSConfig/machineStatus',
    method: 'post',
    data: data
  })
}

// 修改EPT状态规则
export function updateMachineStatus(data) {
  return request({
    url: '/SYSConfig/machineStatus',
    method: 'put',
    data: data
  })
}

// 删除EPT状态规则
export function delMachineStatus(id) {
  return request({
    url: '/SYSConfig/machineStatus/' + id,
    method: 'delete'
  })
}
